﻿@model IEnumerable<PessModel.PAuthor>

@{
    ViewBag.Title = "Authors";
    PessModel.Archive archive=(PessModel.Archive)ViewBag.Archive;
    PessModel.PAuthor pauthor = new PessModel.PAuthor(){ArchiveID=archive.ID};
    ViewBag.AllowEdit = true;
    
    
    if (Model.Count() == 0)
    {
        pauthor = new PessModel.PAuthor()
        {
            ArchiveID = archive.ID,
            Country = archive.Country,
            EMail = archive.EMail,
            FirstName = archive.FirstName,
            LastName = archive.LastName,
            Order = 1,
            Organization = archive.SchoolName,
        };
    }
    ViewBag.DefaultAuthor = pauthor;
    }

<h2 style="margin-bottom:10px">Authors</h2>

<fieldset class="create">
    <legend></legend>
    <div class="heading" style="margin-top:-15px;">
        Authors Information
    </div>
    <form>
   @Html.Partial("_CreatePAuthor",Model)
    </form>
    <br />
</fieldset>

<div id="operate_bottom">
    @Html.ActionLink("Back to My Proposals", "Proposals","Author")
</div>

@*<div id="operate_bottom" style="width:820px;text-align:left;padding-top:0px;padding-bottom:20px">
    @Html.ActionLink("Finish", "FinishNewProposal", "Author", new {id=archive.ID },null)   
</div>*@

